from django.shortcuts import render

# Create your views here.


from django.shortcuts import render
from django.views.decorators.csrf import requires_csrf_token


@requires_csrf_token
def bad_request(request, exception):
    return render(request, 'myapp/400.html')


@requires_csrf_token
def permission_denied(request, exception):
    return render(request, 'myapp/403.html')


@requires_csrf_token
def page_not_found(request, exception):
    return render(request, 'myapp/404.html')


@requires_csrf_token
def error(request):
    return render(request, 'myapp/500.html')
